﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;

public class MapTile
{
    private int x;
    private int y;

    public int X { get => x; }
    public int Y { get => y;  }

    private float xPos;
    private float yPos;
    public float XPos { get => xPos;  }
    public float YPos { get => yPos;  }

    private GameObject mObj;

    public void  Init(int _x, int _y, GameObject _go)
    {
        x = _x;
        y = _y;
        mObj = _go;
        xPos = _go.transform.localPosition.x;
        yPos = _go.transform.localPosition.y;
    }
}

